package com.sakura.cherish.springboot.mybatis.practice.dao;

import com.sakura.cherish.springboot.mybatis.practice.model.UserModel;
import com.sakura.cherish.springboot.mybatis.practice.model.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserDao {
    @Autowired
    private UserMapper userMapper;

    public UserModel getUser(String name) {
        return userMapper.selectedUser(name);
    }
}
